package leetcode.algorithm.dynamicPlan;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import leetcode.dataStructure.Java8Tester;

import java.util.*;

public class Person {
    private  boolean live = true;

    interface MathOperation {
        int operation(int a, int b);
    }

    interface MathJF{
        int JF(int a, int b);
    }
    interface GreetingService {
        void sayMessage(String message);
    }

    private int operate(int a, int b, MathOperation mathOperation){
        return mathOperation.operation(a, b);
    }
    private int operate(int a, int b, MathJF mathJF){
        return mathJF.JF(a, b);
    }





    public static void main(String[] args) {
        Person tester = new Person();
        Person.MathJF jf = (int a, int b)-> a-b;
        System.out.println(tester.operate(5,2, jf));
//        Person.MathOperation addition = (int a, int b) -> a + b;
//
//        System.out.println("10 + 5 = " + tester.operate(10, 5, addition));

//        Person person = new Person();
//        abstract class Inner{
//            public abstract void inner();
//        }
//        Inner inner = new Inner(){
//            @Override
//            public void inner() {
//                System.out.println("inner");
//            }
//        };
//        inner.inner();
    }
}



abstract class fly{
    public abstract void flying();
}
